import { Router } from "express";
import * as DepartController from "../controllers/department.controller";
const router = Router();
router.post("/", DepartController.getAllDepartment);
router.get("/:id", DepartController.getDepartmentById);
router.post("/add", DepartController.createDepartment);
router.put("/:id", DepartController.updateDepartment);
router.delete("/:id", DepartController.deleteDepartment);
export default router;
